<%--
  Created by IntelliJ IDEA.
  User: CVV
  Date: 2018/6/27
  Time: 9:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String id = request.getParameter("id");
    request.setAttribute("id", id);
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="id" value="${requestScope.id}"/>
<html>
<head>
    <title>详细订单 - 订单信息 - 物流管理系统</title>
    <script type="text/javascript" src="../../script/jquery-1.3.2.min.js"></script>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <style media="all" type="text/css">@import "../../style/all.css";</style>
    <script type="text/javascript" src='../../script/common.js'></script>
    <script type="text/javascript">
        $(function () {
            var id = ${id}
                $.ajax({
                    type: "get",
                    url: "/lorder/selectByKey",
                    data: {"id": id},
                    success(res) {
                        var json = JSON.parse(res);
                        $("#ORDER_ID").append(json.orderid);
                        $("#ORDER_TYPE").append(json.orderType);
                        $("#REQUIREDDATE").append(json.requireddate);
                        $("#ORDERDATE").append(json.orderdate);
                        $("#ORDERSTATE").append(json.orderstate);
                        $("#STATION").append(json.order.station);
                        $("#CUSTOMERID").append(json.lcustomer.customerid);
                        $("#CUSTOMERNAME").append(json.lcustomer.customername);
                        $("#ADDRESS").append(json.lcustomer.address);
                        $("#RECEIVEADD").append(json.order.receiveadd);
                        $("#RECEIVEPERSON").append(json.order.receiveperson);
                        $("#RECEIVEPERSONTEL").append(json.order.receivepersontel);
                        $("#RECEIVEPERSONZIP").append(json.order.receivepersonzip);
                        $("#operatorid").append(json.user.userid);
                        $("#userNumber").append(json.user.usernumber);
                        $("#ORDER_TOTALPRICE").append(json.order.orderTotalprice);
                        $("#ISINVOICE").append(json.order.isinvoice);
                        $("#ORDER_REMARK").append(json.order.orderRemark);
                    },
                    error(res) {
                    }
                })
        })
    </script>
</head>
<body style="background: none">
<div class="top-bar">
    <h1>订单信息 &gt; 详细订单</h1>
    <div class="breadcrumbs">
        <div class="button-bar">
            <input type="button" name="Submit" value="返回" onclick='javascript:history.back();' class="button"/>
        </div>
        <a href="../../index.jsp" target="_top">首页</a> /
        <a href="../index.jsp" target="_top">调度中心</a> /
        详细订单
    </div>
</div>

<div class="select-bar">
    <!-- 订单表（订单号id，客户id_FK，价值总额，投递分站id_FK，客户所在区域，期望投递日期，订单产生日期，*/
rem /*         订单类型id(属性表)，付款方式id(属性表)，投递地址，接收人，电话，邮编，订单处理方式id(属性表)，订单状态id(属性表)，
rem /*		   是否发票(0/1)，原订单号，操作员id_FK，备注 （【退货/换货/退订】原因））；*/ -->
    <table class="select-table">
        <tr>
            <th>订单号(原订单号)</th>
            <td id="ORDER_ID"></td>
            <th>订单类型</th>
            <td id="ORDER_TYPE">sdsa</td>
        </tr>
        <tr>
            <th>期望投递日期</th>
            <td id="REQUIREDDATE"></td>
            <th>订单产生日期</th>
            <td id="ORDERDATE"></td>
        </tr>
        <tr>
            <th>订单状态</th>
            <td id="ORDERSTATE"></td>
            <th>订单处理方式</th>
            <td>有货全送</td>
        </tr>
        <tr>
            <th>投递分站</th>
            <td colspan='3' id="STATION"></td>
        </tr>
    </table>
    <br>
    <table class="select-table">
        <tr>
            <th>客户Id</th>
            <td id="CUSTOMERID"></td>
            <th>客户</th>
            <td id="CUSTOMERNAME"></td>
        </tr>
        <tr>
            <th>客户所在区域</th>
            <td id="ADDRESS"></td>
            <th>投递地址</th>
            <td id="RECEIVEADD"></td>
        </tr>
        <tr>
            <th>接收人</th>
            <td id="RECEIVEPERSON"></td>
            <th>电话</th>
            <td id="RECEIVEPERSONTEL"></td>
        </tr>
        <tr>
            <th>邮编</th>
            <td colspan='3' id="RECEIVEPERSONZIP"></td>
        </tr>
    </table>
    <br>
    <table class="select-table">
        <tr>
            <th>操作员Id</th>
            <td id="operatorid"></td>
            <th>操作员工号</th>
            <td id="userNumber"></td>
        </tr>
        <tr>
            <th>价值总额</th>
            <td id="ORDER_TOTALPRICE"></td>
            <th>付款方式</th>
            <td>刷卡</td>
        </tr>
        <tr>
            <th>是否发票</th>
            <td id="ISINVOICE"></td>
            <th>备注</th>
            <td id="ORDER_REMARK">
            </td>
        </tr>
    </table>
</div>
<span style='background-color:#f70;font-size:17px;' class="first">订单明细</span>
<div class="select-bar"/>
<!-- 订单号id,商品id』【复合pk】，数量，备注,是否已与供应商结算(0/1)，与供应商结算日期） -->
<div class="table">
    <table class="listing" cellpadding="0" cellspacing="0">
        <tr>
            <th class='first'>商品Id</th>
            <th>商品名称</th>
            <th>数量</th>
            <th>备注</th>
            <th>是否已与供应商结算</th>
            <th class='last'>与供应商结算日期</th>
        </tr>
        <tr>
            <td>sp200908031523</td>
            <td>金龙鱼食用油
            </th>
            <td>5瓶</td>
            <td>退货成功</td>
            <td>是</td>
            <td>2008-8-20</td>
        </tr>
        <tr>
            <td>sp200908031524</td>
            <td>百威啤酒
            </th>
            <td>5箱</td>
            <td>退货成功</td>
            <td>否</td>
            <td>2008-4-20</td>
        </tr>
        <tr>

            <td>sp200908031525</td>
            <td>佳佳酱油</td>
            <td>一打</td>
            <td>未完成</td>
            <td>是</td>
            <td>2009-8-20</td>
        </tr>
    </table>
    <%--<div class="pager">--%>
    <%--共59条记录 每页<input type="text" class="text" size="2" value="10"/>条--%>
    <%--第1页/共5页--%>
    <%--<a href="#">第一页</a>--%>
    <%--<a href="#">上一页</a>--%>
    <%--<a href="#">下一页</a>--%>
    <%--<a href="#">最后一页</a>--%>
    <%--转到<input type="text" class="text" size="1" value="1"/>页--%>
    <%--<input type="button" class="button" onclick="" value="GO"/>--%>
    <%--</div>--%>
</div>
</body>
</html>
